package com.example.demo.mapper.user;


import com.example.demo.dto.user.reg.URegDto;
import com.example.demo.entity.user.Admin;
import com.example.demo.entity.user.Teacher;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:龙宝
 * Date:2023-03-31
 * Time:18:38
 */
@Mapper
public interface AdminMapper {
    // 注册
    int reg(URegDto uRegDto);
    // 根据id查个人信息
    Admin getAdminById(Integer admin_id);
    Admin getAdminByCardId(String card_id);
    // 查询全部管理员信息
    List<Admin> getAllAdmin();

    // 登录 - 修改state、unfreezing_time
    Integer upAdminState(Admin admin);
}
